
# -*- coding: utf-8 -*-
import KBEngine
from KBEDebug import *
import Functor

class Hall(KBEngine.Entity):
    def __init__(self):
        KBEngine.Proxy.__init__(self)
        #需要玩家的房间
        self.NeedPlayerRooms = {}

    def EnterMatches(self, entityChar):
        pass

    def CreateRoom(self, entityChar):
        pass

    def JoinRoom(self, entityChar, roomNum):
        pass

    def RoomNeedPlayer(self, entityCall, roomNum):
        # 房间通知大厅，需要玩家
        self.NeedPlayerRooms[roomNum] = entityCall

    def RoomIsFull(self, entityCall, roomNum):
        #房间通知大厅，已经满员
        if roomNum in self.NeedPlayerRooms:
            self.NeedPlayerRooms.pop(roomNum)